//-----------------------------------------------------------------------
// <copyright file="a_ReferSourceService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_ReferSourceService
    {
        #region a_ReferSource

        public static void Createa_ReferSource(a_ReferSource a_ReferSource)
        {            
            try
            {
                a_ReferSourceDAO a_ReferSourceDAO = new a_ReferSourceDAO();
                a_ReferSourceDAO.Createa_ReferSource(a_ReferSource);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_ReferSource(a_ReferSource a_ReferSource)
        {            
            try
            {
                a_ReferSourceDAO a_ReferSourceDAO = new a_ReferSourceDAO();
                a_ReferSourceDAO.Updatea_ReferSource(a_ReferSource);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_ReferSource(int refID)
        {            
            try
            {
                a_ReferSourceDAO a_ReferSourceDAO = new a_ReferSourceDAO();
                a_ReferSourceDAO.Deletea_ReferSource(refID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_ReferSource Geta_ReferSource(int refID)
        {            
            try
            {
                a_ReferSourceDAO a_ReferSourceDAO = new a_ReferSourceDAO();
                return a_ReferSourceDAO.Geta_ReferSource(refID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_ReferSourceCollection Geta_ReferSourceList(a_ReferSourceColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_ReferSourceDAO a_ReferSourceDAO = new a_ReferSourceDAO();
                return a_ReferSourceDAO.Geta_ReferSourceList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_ReferSourceCollection Geta_ReferSourceList(a_ReferSourceColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_ReferSourceDAO a_ReferSourceDAO = new a_ReferSourceDAO();
                return a_ReferSourceDAO.Geta_ReferSourceList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}